package com.imchen.cms.cmscore.dao;

import com.imchen.cms.cmscore.model.Comments;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface CommentsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Comments record);

    int insertSelective(Comments record);

    Comments selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Comments record);

    int updateByPrimaryKey(Comments record);

    int deleteByPrimaryKeyLogic(@Param("id") Integer id, @Param("isDelete") Integer isDelete);

    List<Comments> selectComments(@Param("currentIndex") Integer currentIndex,@Param("pageSize") Integer pageSize);

    List<Comments> selectAllComments();

    List<Comments> selectAllCommentsAndTypes();

    List<Comments> selectByBetweenDate(Date startDate,Date endDate);
}